package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.TransportCrackdownService;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.web.vo.executelaw.ExecuteLawVO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP1VO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP2VO;
import com.jeesite.modules.dataScreen.web.vo.transportcrackdown.TransportCrackdownP3VO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author machenzhi
 * @date 2024/09/09 10:42
 */
@RestController
@RequestMapping("/transportCrackdown")
@Api(tags = "交通运输打非治违")
@Slf4j
public class TransportCrackdownAPI {

    @Autowired
    private TransportCrackdownService transportCrackdownService;


    @ApiOperation("p1实时数据")
    @GetMapping("/getP1RealTimeData")
    public Result<TransportCrackdownP1VO> getP1RealTimeData() {
        return Result.OK(transportCrackdownService.getP1RealTimeData());
    }



    @ApiOperation("p2实时数据")
    @GetMapping("/getP2RealTimeData")
    public Result<TransportCrackdownP2VO> getP2RealTimeData() {
        return Result.OK(transportCrackdownService.getP2RealTimeData());
    }


    @ApiOperation("p3实时数据")
    @GetMapping("/getP3RealTimeData")
    public Result<TransportCrackdownP3VO> getP3RealTimeData() {
        return Result.OK(transportCrackdownService.getP3RealTimeData());
    }
}
